home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 478 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: danielkm@aol.com (Daniel K M)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Stack vs. Heap
  5. Date: 4 Jan 1996 14:07:05 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4ch8gp$sp5@newsbf02.news.aol.com>
  9. References: <4cbhga$dra@news.xs4all.nl>
  10. Reply-To: danielkm@aol.com (Daniel K M)
  11. NNTP-Posting-Host: newsbf02.mail.aol.com
  12.  
  13. There's a lot of traffic in this thread discussing which memory model a
  14. programmer should be using.  In regards to my original question, I have no
  15. choice about the structure of memory - I must use DOS, and I have a
  16. limited amount of memory (1 Meg) which can never be increased.  But
  17. regardless of all this, if we simply assume that I want my program to be
  18. as efficient and robust as I can make it (and I realize these two are
  19. often trade-offs) then which memory allocation technique should I use? 
  20. Static or Dynamic?  You can also assume that when an object is dynamic by
  21. nature, I will use dynamic memory allocation.
  22.  
  23. Or, to be brief: Stack vs. Heap?
  24.